# 图的状态结构创建
# from typing import TypedDict
from pydantic import BaseModel


# class Contact(TypedDict):
#     name: str
#     phone: str
#     email: str
class Contact(BaseModel):
    name: str
    phone: str
    email: str


# 节点函数
def send_email(contact: Contact):
    print(f"Sending email to {contact['name']} at {contact['phone']}")


contact_info: Contact = {
    "name": 432423,
    "phone": "555-555-5555",
    "email": "email@email.com",
}
send_email(contact_info)
